# 天干地支
# Date: 2025/3/27


def china_year_name(year: int):
    sky_trunk = ["geng", "xin", "ren", "gui", "jia", "yi", "bing", "ding", "wu", "ji", ]  # "庚"为0索引以防止越界
    ground_branch = ["zi", "chou", "yin", "mou", "chen", "si", "wu", "wei", "shen", "you", "xu", "hai"]
    pivot, sky_point, ground_point = 2020, 0, 0  # 2020年为基准年份
    delta = year - pivot
    sky_point += delta % 10
    ground_point += delta % 12
    return sky_trunk[sky_point] + ground_branch[ground_point]


if __name__ == '__main__':
    print(china_year_name(int(input())))
